package com.study.java8.char05;

import java.util.Random;

public class ForInFloat {
    public static void main(String[] args) {
        //有了种子每次生成的书相同
        Random rand = new Random(47);
        float[] f = new float[10];
        for (int i = 0; i < 10; i++)
            f[i] = rand.nextFloat();
        for (float x : f)
            System.out.println(x);
    }
}
